package cn.portx.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.bstek.dorado.annotation.PropertyDef;

/**
 * 费用开票信息
 * 
 * @author Administrator
 *
 */
@Entity
@Table(name = "T_BILLING")
public class Billing extends BaseEntity {

	private static final long serialVersionUID = 4962312765310976686L;

	/** 发票号. */
	@Column(name = "INVOICE_NO_", length = 30)
	@PropertyDef(label = "发票号", description = "发票号:发票号")
	private String invoiceNo;

	/** 开票金额. */
	@Column(name = "KPJE_", precision = 10, scale = 2)
	@PropertyDef(label = "开票金额", description = "开票金额:开票金额")
	private Double kpje = 0d;

	/** 开票金额. */
	@Column(name = "KPRQ_")
	@PropertyDef(label = "开票日期", description = "开票日期")
	private Date kprq;

	@Column(name = "ORDER_EXPENSE_ID_", length = 60)
	private String orderExpenseId;

	@Transient
	private OrderExpense orderExpense;

	public String getOrderExpenseId() {
		return orderExpenseId;
	}

	public void setOrderExpenseId(String orderExpenseId) {
		this.orderExpenseId = orderExpenseId;
	}

	public OrderExpense getOrderExpense() {
		return orderExpense;
	}

	public void setOrderExpense(OrderExpense orderExpense) {
		this.orderExpense = orderExpense;
	}

	public String getInvoiceNo() {
		return invoiceNo;
	}

	public void setInvoiceNo(String invoiceNo) {
		this.invoiceNo = invoiceNo;
	}

	public Double getKpje() {
		return kpje;
	}

	public void setKpje(Double kpje) {
		this.kpje = kpje;
	}

	public Date getKprq() {
		return kprq;
	}

	public void setKprq(Date kprq) {
		this.kprq = kprq;
	}

}
